﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using log4net;
using log4net.Config;
using log4net.Core;
using log4net.Repository.Hierarchy;
using log4net.Appender;

namespace VTR.Core
{
    public class Logging
    {
        private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        public static void LogEntry(string msg, Exception ex)
        {
            log4net.Config.XmlConfigurator.Configure();
            //log.Logger.Name = "jfkdslaf";
            log.Error(msg, ex);
        }
    }
}
